<?php class Form_CityForm extends Form_Custom_General {
        public function init() {

		$city_id = $this->createElement("hidden", "city_id")
                     ->setRequired(FALSE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter id")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Id"));
                     $this->addElement($city_id);

		$city_identity_code = $this->createElement("text", "city_identity_code")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter identity code")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Identity Code"));
                     $this->addElement($city_identity_code);

		$city_name = $this->createElement("text", "city_name")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter city name")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"City Name"));
                     $this->addElement($city_name);

		$city_title = $this->createElement("text", "city_title")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter city title")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"City Title"));
                     $this->addElement($city_title);

                $country_id = $this->createElement("select", "country_id")
                                    ->setRequired(TRUE)
                                    ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter country")))
                                    ->addFilters(array(
                                        new Zend_Filter_StringTrim(),
                                    ))
                ->setAttribs(Array("class"=>"form-control select2","placeholder"=>"Country"));
                $this->addElement($country_id);

                     
		$city_lang_id = $this->createElement("select", "city_lang_id")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter language")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control select2","placeholder"=>""));
               $this->addElement($city_lang_id);

		
		
                $city_status = $this->createElement("select", "city_status")
                     ->setRequired(TRUE)
                     ->addValidator("NotEmpty", true, array("messages" => array("isEmpty" => "Please enter status")))
                     ->addFilters(array(
                         new Zend_Filter_StringTrim(),
                     ))
                     ->setAttribs(Array("class"=>"form-control","placeholder"=>"Status"));
                $this->addElement($city_status);

             }
        }?>